<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>THIENSUHACK (^_*)</title>
<?php echo $this->headLink()->appendStylesheet($this->baseURL.'/css/admin.css') ?>
<?php echo $this->headLink()->appendStylesheet($this->baseURL.'/css/template.css') ?>
<?php echo $this->headScript()->appendFile($this->baseURL.'/js/jquery-1.3.2.js','text/javascript');?>
<?php echo $this->headScript()->appendFile($this->baseURL.'/js/general.js','text/javascript');?>
  <script type="text/javascript" src="/js/menu/jquery.metadata.js"></script>
  <script type="text/javascript" src="/js/menu/jquery.hoverIntent.js"></script>
  <script type="text/javascript" src="/js/menu/mbMenu.js"></script>
  <link rel="stylesheet" type="text/css" href="/css/menu/menu1.css" media="screen" />
<script type="text/javascript">
function gotoURL(url)
{
window.location = url;
}
</script>

 <script type="text/javascript">

    $(function(){

      $(".vertMenu").buildMenu(
      {
        template:"menuVoices.html",
        menuWidth:200,
        openOnRight:true,
        menuSelector: ".menuContainer",
        iconPath:"/images/ico/",
        hasImages:true,
        fadeInTime:200,
        fadeOutTime:200,
        menuTop:0,
        menuLeft:-30,
        opacity:.95,
        openOnClick:false,
        minZindex:200,
        shadow:false,
        hoverIntent:300,
        submenuHoverIntent:300,
        closeOnMouseOut:true
      });


    });

    function recallcMenu(el){
      if (!el) el= $.mbMenu.lastContextMenuEl;
      var cmenu=+$(el).attr("cmenu");
      $(cmenu).remove();
    }

 </script>
 
 <script type="text/javascript">
 var t;
 var c = 1;
 function chgBgTimer()
 {
	 var num = (c % 3) + 1;
	 $("#img_header").fadeOut('slow',function(){

		 $("#img_header").attr("src","/images/upload/banner"+num+".jpg");
		 
	});
	 $("#img_header").fadeIn('slow');
 	t=setTimeout("chgBgTimer()",4000);
 	c ++;
 }
 
 </script>

</head>
<body id="page_bg">
<div id="container">


<!-- no search -->
<div id="nosearch"></div>
<!-- no search end-->


<!-- pill menu -->
<div id="pillmenu">
<ul id="mainlevel-nav">
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/index"><?php echo My_Translate::translate("HOME");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/index/page/type/kinhdoanh/"><?php echo My_Translate::translate("OUR_SERVICES");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/content/list/"><?php echo My_Translate::translate("LIBRARY");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/question/"><?php echo My_Translate::translate("CONSULTANT");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/index/page/type/tuyendung/"><?php echo My_Translate::translate("RECRUITMENT");?></a></li>
	<li><a class="mainlevel-nav"
		href="<?php echo $this->baseURL;?>/feedback/"><?php echo My_Translate::translate("CONTACT_US");?></a></li>
	<span style="float: right;padding-top: 10px;">
		<?php echo $this->language(); ?>
		</span>
</ul>
<!--<span class="breadcrumbs pathway">
Trang chủ</span>-->
</div>
<!-- pill menu end-->


<!-- header -->
<div id="header">
	<div id="headerimg"><img width="699" height="160" id="img_header"></img></div>
	<div id="header-left" style="float: right; padding:5px; width: 225px;height: 100%;"><h1><a href="#" style="color: #7C6B1B">iTGVN ^^</a></h1></div>
</div>
<script type="text/javascript">
chgBgTimer();
</script>
<!-- header end-->



<!-- content -->
<div id="content">
<div id="content_top">
<div id="content_bottom">


<!-- left column -->
<div id="leftcolumn">


<!-- module category -->
<div>
<!--<h3><?php echo My_Translate::translate("SITE_PRODUCT_CATEGORY");?></h3>
--><!--<ul style="padding-left: 0px;" class="menu">
<?php 
$service = new ProductCategoryService();
$data = $service->buildQueryData();
$categories = $data->query()->fetchAll();
foreach($categories as $category){	
?>
	<li class="level1 item1 ">
	<a
		href="<?php echo $this->url( array('action'=>'list','controller'=>'product','module'=>'site','id'=>$category['categoryId']),
'default', true) ?>"
		class="level1 item1 "> 
		<img width="30" height="30" src="<?php echo $this->baseURL?>/images/products/<?php echo $category['imageURL'];?>" />
		<span style="font-weight: bold;"><?php echo $category['categoryName'];?></span> </a></li>
<?php }?>
</ul>
-->
<table width="100%" height="100%">
<tr>
<td><img src="/images/web/icon_fa.png"></img></td>
<td align="left"><a class="service_menu" href="/index/page/type/news">
<?php echo My_Translate::translate("MENU_INFO");?></a></td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>

<tr><td class="line" colspan="3"></td></tr>

<tr>
<td><img src="/images/web/icon_ict.png"></img></td>
<td align="left"><a class="service_menu" href="/index/page/type/software">
<?php echo My_Translate::translate("MENU_SOFTWARE");?></a></td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>

<tr><td class="line" colspan="3"></td></tr>

<tr>
<td><img src="/images/web/icon-menu2.png"></img></td>

<td align="left">
  <!-- start vertical menu -->
  <div class="vertMenu">
    <table cellspacing='0' cellpadding='0' border='0'>
      <tr><td class="rootVoice {menu: 'menu_2'}" ><a class="service_menu" href="javascript:void(0);"><?php echo My_Translate::translate("MENU_ITGVN2");?></a></td></tr>
    </table>
  </div>
  <div id="menu_2" class="mbmenu">
    <a class="{img: 'icon-menu2-sub1.png'}" href="/product/list/type/giasuc/" ><?php echo My_Translate::translate("MENU_ITGVN2_SUB1");?></a>
    <a class="{img: 'icon-menu2-sub2.png'}" href="/product/list/type/giacam/" ><?php echo My_Translate::translate("MENU_ITGVN2_SUB2");?></a>
    <a class="{img: 'icon-menu2-sub3.png'}" href="/product/list/type/vatnuoikhac/" ><?php echo My_Translate::translate("MENU_ITGVN2_SUB3");?></a>
  </div>
  <!-- end vertical menu -->
</td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>

<tr><td class="line" colspan="3"></td></tr>

<tr>
<td><img src="/images/web/icon-menu3.png"></img></td>
<td align="left"><a class="service_menu" href="/product/list/type/phugia/">
<?php echo My_Translate::translate("MENU_ITGVN3");?></a></td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>

<tr><td class="line" colspan="3"></td></tr>

<tr>
<td><img src="/images/web/icon-menu4.png"></img></td>
<td align="left"><a class="service_menu" href="/product/list/type/thietbi/">
<?php echo My_Translate::translate("MENU_ITGVN4");?></a></td>
<td valign="bottom"><img src="/images/web/icon_arrow.png"></img></td>
</tr>
</table>


</div>

<!-- module category end-->

<br></br>



<!-- module ads -->
<div>

<!-- module caption -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="7">
<img width="7" height="21" src="/images/web/right_left.jpg"/>
</td>
<td bgcolor="#00629D">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
	<tbody>
		<tr>
			<td width="11"><img width="11" height="11"
				src="/images/web/right_icon.jpg" /></td>
			<td class="titleCopy"><?php echo My_Translate::translate("PARTNER");?></td>
		</tr>
	</tbody>
</table>
</td>
<td width="8">
<img width="8" height="21" src="/images/web/right_right.jpg"/>
</td>
</tr></table>
<!-- module caption end-->


<div class="module_content">
<?php 
$contactService = new ContactService();
$contactArray = $contactService->loadAll();
foreach($contactArray as $contact)
{?>
	<a href="<?php echo $contact->link;?>"> <img src="/images/articles/<?php echo $contact->imageURL;?>" width="170" /></a>
<?php 
}
?>
</div>
</div>
<!-- module ads end-->

<br></br>

<!-- module online-->
<div>

<!-- module caption -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="7">
<img width="7" height="21" src="/images/web/right_left.jpg"/>
</td>
<td bgcolor="#00629D">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
	<tbody>
		<tr>
			<td width="11"><img width="11" height="11"
				src="/images/web/right_icon.jpg" /></td>
			<td class="titleCopy"><?php echo My_Translate::translate("STATISTIC");?></td>
		</tr>
	</tbody>
</table>
</td>
<td width="8">
<img width="8" height="21" src="/images/web/right_right.jpg"/>
</td>
</tr></table>
<!-- module caption end-->

<div class="module_content">

<?php 
$dbAdapter = Zend_Registry::get("dpAdapter");
$result = $dbAdapter->fetchRow('SELECT * FROM info');
$visited = $result['visited'];
?>
<?php echo My_Translate::translate("TOTAL_VISITED");?>: <?php echo $visited;?>
</div>

</div>
<!-- module online end-->


</div>
<!-- left column end-->


<!-- main column -->
<div id="maincolumn">
<div id="mainCenter">
<div class="nopad">
<!--<div class="componentheading">
	</div>
	--><?php echo $this->layout()->content; ?>
</div>
</div>
</div>
<!-- main column end-->


<!-- right column -->
<div id="rightcolumn" style="float: right;">

<!-- module login-->
<!-- module login end-->




 <!-- module san pham scroler-->
 
<div>
<!-- module caption -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="7">
<img width="7" height="21" src="/images/web/right_left.jpg"/>
</td>
<td bgcolor="#00629D">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
	<tbody>
		<tr>
			<td width="11"><img width="11" height="11"
				src="/images/web/right_icon.jpg" /></td>
			<td class="titleCopy"><?php echo My_Translate::translate("RANDOM_PRODUCT");?></td>
		</tr>
	</tbody>
</table>
</td>
<td width="8">
<img width="8" height="21" src="/images/web/right_right.jpg"/>
</td>
</tr></table>
<!-- module caption end-->

<div class="module_content">
<div style="padding-left: 20px; width: 150px;">
<marquee width="150"
	height="300" onmouseout="this.start()" onmouseover="this.stop()"
	truespeed="truespeed" scrolldelay="120" scrollamount="5" direction="down"
	behavior="scroll">
	
<?php 
$service = new ProductService();
$select = $service->getProductsWithType("tieubieu");
$products = $select->query()->fetchAll();
foreach($products as $product){
?>	
<div><a href="<?php echo $this->url( array('action'=>'detail','controller'=>'product','module'=>'site','id'=>$product['productId']),
'default', true) ?>"><img width="100" height="75"
	src="<?php echo $this->baseURL?>/images/products/<?php echo $product['imageURL'];?>"></img></a>
<a href=""><br />
<?php echo $product['productName'];?></a> <br />
<br />
<br />
</div>
<?php }?>

</marquee>
</div>
</div>

</div>

<!-- module san pham end-->

<br></br>

<!-- module yahoo-->
<div>

<!-- module caption -->
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr>
<td width="7">
<img width="7" height="21" src="/images/web/right_left.jpg"/>
</td>
<td bgcolor="#00629D">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
	<tbody>
		<tr>
			<td width="11"><img width="11" height="11"
				src="/images/web/right_icon.jpg" /></td>
			<td class="titleCopy"><?php echo My_Translate::translate("ONLINE_SUPPORT");?></td>
		</tr>
	</tbody>
</table>
</td>
<td width="8">
<img width="8" height="21" src="/images/web/right_right.jpg"/>
</td>
</tr></table>
<!-- module caption end-->

<div class="module_content">
<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
<a href="skype:saranutp?chat"><img src="http://mystatus.skype.com/bigclassic/doanvuthuan" 
style="border: none;" width="142" height="36" alt="My status" /></a>
<a href="skype:bvmvfamily?chat"><img src="http://mystatus.skype.com/bigclassic/doanvuthuan" 
style="border: none;" width="142" height="36" alt="My status" /></a>
<br><br>

</div>

</div>
<!-- module yahoo end-->


</div>
<!-- right column end -->


<div class="clr"></div>

</div>
</div>
</div>
<!-- content end-->


<!-- footer-->
<div id="footer"> 
<?php echo My_Translate::translate("FOOT_COMPANY_NAME");?><br>
<?php echo My_Translate::translate("ADDRESS");?><br>
<?php echo My_Translate::translate("FOOT_PHONE");?>: Tel: 011.111.111.111 ^^<br>
Email: thiensuhack0101@gmail.com
</div>
<!-- footer end-->


</div>
</body>
</html>